<template>
	<view class="avatar_list" hover-class="hoverClassList">
		<view class="avatar">
			<image :src="data.avatar ? data.avatar : '/static/avatar/default_avatar.png'" 
			class="image"></image>
		</view>
		<view class="right">
			<text class="title text">{{data.username}}</text>
			<text class="time text">{{data.create_time}}</text>
		</view>
	</view>
</template>

<script setup>
	const props = defineProps({
		data: {
			type: Object,
			default: () => {}
		}
	})
</script>

<style lang="less" scoped>
	.avatar_list{
		padding: 10rpx 20rpx;
		display: flex;
		align-items: center;
		flex-direction: row;
		.avatar{
			.image{
				width: 80rpx;
				height: 80rpx;
				border-radius: 15rpx;
			}
		}
		.right{
			flex: 1;
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			margin-left: 20rpx;
			.text{
				font-size: 30rpx;
			}
		}
	}
</style>